<template>
  <div>
    <h1>App</h1>
    <ul>
      <li v-for=" r in  routes">
        <router-link :to="{ name: r.name }">{{r.meta.name}} {{r.meta.auth}}</router-link>
      </li>
    </ul>

    <router-view></router-view>
  </div>
</template>
<script>
export default {

  computed:{
    routes(){
      return this.$router.options.routes.filter(el=>el.meta.hidden===false)
    }
  },

  mounted(){
    // console.log(this.$router.options.routes);
  }

}
</script>

<style>
div {
  padding: 10px;
  margin: 10px;
  border: solid;
}
</style>